package com.time.auth.infra.basic.service.impl;

import com.time.auth.infra.basic.entity.AuthUser;
import com.time.auth.infra.basic.mapper.AuthUserDao;
import com.time.auth.infra.basic.service.AuthUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户服务实现类
 *
 * @author: HuangQi
 * @date: Created in 11:36 2025/9/25
 * @description: 用户服务实现类
 */
@Service("authUserService")
public class AuthUserServiceImpl implements AuthUserService {

    @Autowired
    private AuthUserDao authUserDao;

    @Override
    public AuthUser queryByUserName(String userName) {
        return this.authUserDao.queryByUserName(userName);
    }

    @Override
    public Integer insert(AuthUser authUser) {
        return this.authUserDao.insert(authUser);
    }

    @Override
    public Integer updateByUserName(AuthUser authUser) {
        return this.authUserDao.updateByUserName(authUser);
    }

    @Override
    public List<AuthUser> queryByCondition(AuthUser authUser) {
        return this.authUserDao.queryAllByLimit(authUser);
    }

    @Override
    public Integer update(AuthUser authUser) {
        return this.authUserDao.update(authUser);
    }
}
